package com.czq.spring.cloud.alibaba.consumer.service;

import com.czq.spring.cloud.alibaba.consumer.service.fallback.EchoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name= "service-provider", fallback = EchoServiceFallback.class)
public interface EchoService {

    @GetMapping(value = "/echo/{String}")
    public String echo(@PathVariable("String") String string);

    @GetMapping(value = "/lb")
    public String lb ();
}
